﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Module.Common.Common.QiPuHelper
{
    /// <summary>
    /// 棋谱简易记录类
    /// 用于数据库存储
    /// </summary>
    public class SimpleTreeOfQiPu
    {
        public int Id { get; set; } // 步数
        public List<SimpleTreeOfQiPu> Child { get; set; }  // 子结点
        public StepData Data { get; set; } // 棋谱记录
        public string Remarks { get; set; } // 备注

        public SimpleTreeOfQiPu()
        {
            Child = new List<SimpleTreeOfQiPu>();
        }
        public void CopyDataFromStep(StepData code)
        {
            if (code == null) return;
            Data.SetStepData(code.QiZiId, code.X0, code.Y0, code.X1, code.Y1, code.DieQz);
        }
    }
}
